package com.sweetguy.dto;

import com.sweetguy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Schema(name = "订单明细修改DTO")
@Data
public class OrderDetailUpdateDTO implements Serializable, RE {

    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "订单ID,订单表外键")
    private Long fkOrderId;

    @Schema(description = "课程ID,课程表外键")
    private Long fkCourseId;
}
